-- GENERATED SPELL FOR [Fungal Giant] --


function spell0_19734(pUnit, Event) --@Unstable Mushroom Primer,n/a--
pUnit:FullCastSpellOnTarget(35273,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19734', 629, 1)
end

function Sorts_19734(pUnit, Event)
local choix_sorts_19734 = math.random(0, 0)
if choix_sorts_19734 == 0 then
pUnit:RegisterEvent('spell0_19734', 1, 1)
end
end

function mob19734_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19734', math.random(1500, 3000), 1)
end

function mob19734_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19734_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19734_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19734, 1, 'mob19734_Action')
RegisterUnitEvent(19734, 2, 'mob19734_Leave')
RegisterUnitEvent(19734, 3, 'mob19734_Kill')
RegisterUnitEvent(19734, 4, 'mob19734_Die')
